package com.kplan.plan.service;

import java.util.List;

import com.kplan.plan.dao.PlanDao;
import com.kplan.plan.dto.TrainTimeDto;

public class PlanService {
	private static PlanService planService;
	static{
		planService = new PlanService();
	}
	
	private PlanService(){}
	
	public static PlanService getInstance(){
		return planService;
	}
	public List<TrainTimeDto> trainSearch(String startTime, String division, String startStation, String endStation){
		return PlanDao.getInstance().trainSearch(startTime, division, startStation, endStation);
//		return dao.trainSearch(startTime, division, startStation, endStation);
	}
}